#include<stdio.h>
int main()
{
    int n = 0;
    scanf("%d",&n);
    char arr[700]={'\0'};
    int i = 0;
    for(i=0;i<n;i++)
    {
        getchar();
        int j = 6*i;
        for(j=6*i;j<6*i+6;j++)
        {
            arr[j]=getchar();
        }
    }
    int Judge[100]={0};
    for(i=0;i<n;i++)
    {
        int j = 6*i;
        if((arr[j]+arr[j+1]+arr[j+2])==(arr[j+3]+arr[j+4]+arr[j+5]))
        {
            Judge[i]=1;
        }
    }
    for(i=0;i<n;i++)
    {
        if(Judge[i]==1)
        {
            printf("You are lucky!\n");
        }
        else
        {
            printf("Wish you good luck.\n");
        }
    }
    return 0;
}